<?php

require_once "core/application/models/mrecovery/mrecovery.php";
require_once "core/application/classes/errorClass.php";

class Recovery_Controller extends Recovery_Model {

    public static $_instance = NULL;

    //private $_account = NULL;

    public static function getInstance() {
        /**
         * 	singleton pattern
         * 
         */
        if (is_null(self::$_instance)) {
            $class = __CLASS__;
            self::$_instance = new $class();
        }
        return self::$_instance;
    }

    public function accountIsset($account) {
        if ($this->issetThisName($account)) {
            $this->echoSuccess("Такой аккаунт есть, хорошо. Продолжаем.");
        } else {
            echo "<script language='javascript'> 
				$.jmessage('Пишите дальше', 'Пока такого аккаунта нет..', 0, 'jm_message_error'); 
				</script>";
        }
    }

}

?>
